package sma.agents;

import java.util.Iterator;

import jade.core.Agent;

public class helloAgent extends Agent{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	protected void setup(){
		System.out.println("Local name : " + getAID().getLocalName());
		System.out.println("GUID : " + getAID().getName());
		Iterator it = getAID().getAllAddresses();
		while(it.hasNext()){
			System.out.println("Addresse : " + it.next());
		}
//		doDelete();
		
		System.out.println("My arguments : ");
		Object[] args = this.getArguments();
		if (args != null){
			for (int i=0; i < args.length; i++){
				System.out.println("- " + args[i]);
			}
		}
		else
			System.out.println("Sans arguments !!!");
	}
}
